﻿using System;
using System.Collections.Generic;

namespace MessagePack.Formatters
{
	// Token: 0x02000022 RID: 34
	public class SortedDictionaryFormatter<TKey, TValue> : DictionaryFormatterBase<TKey, TValue, SortedDictionary<TKey, TValue>, SortedDictionary<TKey, TValue>>
	{
		// Token: 0x06000080 RID: 128 RVA: 0x00003080 File Offset: 0x00001480
		protected override void Add(SortedDictionary<TKey, TValue> collection, int index, TKey key, TValue value)
		{
			collection.Add(key, value);
		}

		// Token: 0x06000081 RID: 129 RVA: 0x0000308B File Offset: 0x0000148B
		protected override SortedDictionary<TKey, TValue> Complete(SortedDictionary<TKey, TValue> intermediateCollection)
		{
			return intermediateCollection;
		}

		// Token: 0x06000082 RID: 130 RVA: 0x0000308E File Offset: 0x0000148E
		protected override SortedDictionary<TKey, TValue> Create(int count)
		{
			return new SortedDictionary<TKey, TValue>();
		}
	}
}
